import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import Store from '@/store'
import uView from '@/uni_modules/uview-ui'
import tabbar from '@/components/tabbar/index.vue'
import navBar from '@/components/navbar/navbar.vue'
import url from '@/config/url.js'
Vue.prototype.$store = Store
Vue.prototype.$severUrl = url.severUrl
Vue.prototype.$imgUrl = url.imgUrl
let mpShare = require('@/utils//mpShare.js');
Vue.component('navBar', navBar)
Vue.component('tab-bar', tabbar)
Vue.use(uView)
// Vue.mixin(mpShare)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	Store,
	...App
})
require('./config/http.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif